package com.tm.chargecar.controller;

import com.tm.chargecar.entity.SystemOperationLogsEntity;
import com.tm.chargecar.result.Result;
import com.tm.chargecar.service.SystemOperationService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("systemOperation")//
@Api("系统操作日志接口")

public class SystemOperationController {
        @Autowired
        private SystemOperationService systemOperationService;

        @GetMapping("list")
        public Result querySystemOperationData(){
         List<SystemOperationLogsEntity>  list =  systemOperationService.querySystemOperationData();
         return Result.SUCCESS(list);
        }



}
